package Decorator;

public class Decorator implements Component  // 装饰者
{
	private Component component;//持有对构建角色的引用
	
	
	public Decorator(Component component)
	{
		this.component = component;
	}


	@Override
	public void doSomething()
	{
		component.doSomething();
	}

}
